@isTest
private class TestSchemaAppController {
	static testMethod void testSchemaApp(){
		
		
		PageReference SchemaPage1 = new Pagereference('/apex/SchemaApp?');//Creating Page reference to SchemaApp page.
		SchemaPage1.getParameters().put('sobj','Account');//Setting paramter in order to get its child relationships.
		Test.setCurrentPage(SchemaPage1);
		SchemaAppController obj = new SchemaAppController();
		
		//Getting all the Sobjects
		obj.getSObjectList();
		
		//Getting childrelationships for Object as set in aprameter.
		obj.findRelationships();
		
		//setting parameterused in searching all objects prefixed 'A' are displayed.
		SchemaPage1.getParameters().put('links','A');
		//Getting all the Sobjects according to link parameter.
		obj.filterSObjectList();
		
		//Forced call on getter methods.
		List<String> commandsLinks = obj.getCommandLinks();
		List<SelectOption> optionList = obj.getObjects();
		
		//Setting Search Object and Search Text for field search.
		obj.SearchObj ='Account';
		obj.SearchText='e';
		//Searching and displaying searched fields.
		obj.searchField();
		obj.getSObjectFieldList();
		
	}
}